package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zr
 * @since 2020-04-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_car_channel")
@ApiModel(value = "CarChannel对象", description = "车载通道")
public class CarChannel extends Model<CarChannel> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "宏电终端序列号")
    @TableField("termSn")
    private String termSn;

    @ApiModelProperty(value = "车牌号")
    private String vin;

    @ApiModelProperty(value = "宏电通道号")
    @TableField("hdid")
    private String hdid;

    @ApiModelProperty(value = "通道名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "通道类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "icon的base64")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "通道号")
    @TableField("channel_no")
    private Integer channelNo;

    @ApiModelProperty(value = "通道视频信息")
    @TableField(exist = false)
    private CarVideo channelVideoList;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
